package cn.wind.xboot.logic.service.impl;

import cn.wind.xboot.logic.entity.VegetableMarket;
import cn.wind.xboot.logic.dao.VegetableMarketMapper;
import cn.wind.xboot.logic.service.IVegetableMarketService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 市场 服务实现类
 * </p>
 *
 * @author wind
 * @since 2018-12-21
 */
@Service
public class VegetableMarketServiceImpl extends ServiceImpl<VegetableMarketMapper, VegetableMarket> implements IVegetableMarketService {

    @Override
    public List<VegetableMarket> findAll() {
        return this.baseMapper.selectAll();
    }

    @Override
    public IPage<VegetableMarket> findByCondition(IPage page, Map<String, Object> map) {
        return this.baseMapper.findByCondition(page,map);
    }
}
